<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'persona-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Els camps amb <span class="required">*</span> són requerits.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'nom_usuari'); ?>
		<?php echo $form->textField($model,'nom_usuari',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'nom_usuari'); ?>
	</div>

    <div class="row">
        <?php echo $form->labelEx($model,'novaContrasenya'); ?>
        <?php echo $form->passwordField($model,'novaContrasenya',array('size'=>16,'maxlength'=>16)); ?>
        <?php echo $form->error($model,'novaContrasenya'); ?>
    </div>   
    
    <?php echo "<br /><b>Rol assignat:</b> ".$model->rol."<br /><br />"; ?>
    
	<div class="row buttons">
        <br />
		<?php echo CHtml::submitButton('Modificar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->